<?php defined('ByShopWWI') or exit('Access Invalid!');?>

<div class="wrap">
		<div class="tabmenu">
				<?php include template('layout/submenu');?>
		</div>

		
		<!--从这个地址移植：/shop/index.php?act=pointvoucher&op=index-->
		
		
		<div class="ncp-main-layout">
				<div class="ncp-category">
						<!-- 高级搜索start -->
						<dl class="searchbox">
								<dt>排序方式：</dt>
								<dd>
										<ul>
												<input type="hidden" id="orderby" name="orderby" value="default">
												<!-- 默认排序s -->
												<li class="selected">默认排序</li>
												<!-- 默认排序e -->
												<!-- 兑换量s -->
												<li nc_type="search_orderby" data-param="{&quot;orderval&quot;:&quot;exchangenumdesc&quot;}">兑换量<em class="desc"></em></li>
												<!-- 兑换量e -->
												<!-- 积分值s -->
												<li nc_type="search_orderby" data-param="{&quot;orderval&quot;:&quot;pointsdesc&quot;}">积分值<em class="desc"></em></li>
												<!-- 积分值e -->
												<li>&nbsp;</li>
												<!-- 面额s -->
												<li>优惠券面额：
														<select id="price" onchange="javascript:searchvoucher();">
																<option value="" selected="">-请选择-</option>
																<option value="500">500元代金券</option>
																<option value="1000">1000元代金券</option>
														</select>
												</li>
												<!-- 面额e -->
												<li>&nbsp;</li>
												<!-- 所需积分s -->
												<li>所需积分：
														<input type="text" id="points_min" class="text w50" value="">
														~
														<input type="text" id="points_max" class="text w50" value="">
														<a href="javascript:searchvoucher();" class="ncbtn">搜索</a> </li>
												<!-- 所需积分e -->
												<li>
														<label for="isable">
														<input type="checkbox" id="isable" onclick="javascript:searchvoucher();">
														&nbsp;只看我能兑换 </label>
												</li>
										</ul>
								</dd>
						</dl>
						<!-- 高级搜索end -->
				</div>
				<ul class="ncp-voucher-list">
						<li>
								<div class="ncp-voucher">
										<div class="cut"></div>
										<div class="info"><a href="http://localhost/JBPAA16091900001/shop/index.php?act=show_store&amp;op=index&amp;store_id=1" class="store">金贵银器</a>
												<p class="store-classify">服装鞋包</p>
												<div class="pic"><img src="<?php echo SHOP_TEMPLATES_URL;?>/images/default.jpg"></div>
										</div>
										<dl class="value">
												<dt>¥<em>1000</em></dt>
												<dd>无限额代金券</dd>
												<dd class="time">有效期至2016-12-30</dd>
										</dl>
										<div class="point">
												<p class="required">需<em>1</em>积分</p>
												<p><em>0</em>人兑换</p>
										</div>
										<div class="button"><a target="_blank" href="###" nc_type="exchangebtn" data-param="{&quot;vid&quot;:&quot;2&quot;}" class="ncbtn ncbtn-grapefruit">立即兑换</a></div>
								</div>
						</li>
						<li>
								<div class="ncp-voucher">
										<div class="cut"></div>
										<div class="info"><a href="http://localhost/JBPAA16091900001/shop/index.php?act=show_store&amp;op=index&amp;store_id=1" class="store">金贵银器</a>
												<p class="store-classify">分类</p>
												<div class="pic"><img src="<?php echo SHOP_TEMPLATES_URL;?>/images/default.jpg"></div>
										</div>
										<dl class="value">
												<dt>¥<em>1000</em></dt>
												<dd>无限额代金券</dd>
												<dd class="time">有效期至2016-12-30</dd>
										</dl>
										<div class="point">
												<p class="required">需<em>1</em>积分</p>
												<p><em>0</em>人兑换</p>
										</div>
										<div class="button"><a target="_blank" href="###" nc_type="exchangebtn" data-param="{&quot;vid&quot;:&quot;2&quot;}" class="ncbtn ncbtn-grapefruit">立即兑换</a></div>
								</div>
						</li>
						<li>
								<div class="ncp-voucher">
										<div class="cut"></div>
										<div class="info"><a href="http://localhost/JBPAA16091900001/shop/index.php?act=show_store&amp;op=index&amp;store_id=1" class="store">金贵银器</a>
												<p class="store-classify">分类</p>
												<div class="pic"><img src="<?php echo SHOP_TEMPLATES_URL;?>/images/default.jpg"></div>
										</div>
										<dl class="value">
												<dt>¥<em>1000</em></dt>
												<dd>无限额代金券</dd>
												<dd class="time">有效期至2016-12-30</dd>
										</dl>
										<div class="point">
												<p class="required">需<em>1</em>积分</p>
												<p><em>0</em>人兑换</p>
										</div>
										<div class="button"><a target="_blank" href="###" nc_type="exchangebtn" data-param="{&quot;vid&quot;:&quot;2&quot;}" class="ncbtn ncbtn-grapefruit">立即兑换</a></div>
								</div>
						</li>
						
						
				</ul>
				<div class="tc mt20 mb20">
						<div class="pagination">
								<ul>
										<li><span>首页</span></li>
										<li><span>上一页</span></li>
										<li><span class="currentpage">1</span></li>
										<li><span>下一页</span></li>
										<li><span>末页</span></li>
								</ul>
						</div>
				</div>
		</div>
</div>
<script>
$(function(){

    $("[nc_type='exchangebtn']").live('click',function(){
    	var data_str = $(this).attr('data-param');
	    eval( "data_str = "+data_str);
	    ajaxget('shop/index.php?act=pointvoucher&op=voucherexchange&dialog=1&vid='+data_str.vid);
	    return false;
    });

});
</script>
